home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / graphics / c3d2raw.zoo / Makefile < prev    next >
Makefile  |  1994-04-05  |  2KB  |  67 lines

  1. # Makefile for cad3d2raw
  2. # Chris Herborth (cherborth@semprini.waterloo-rdp.on.ca)
  3. # $Id: Makefile,v 1.4 1994/04/05 15:07:30 herborth Exp $
  4. #
  5. # The only option you need to worry about is -DLITTLE_ENDIAN; add this to
  6. # CFLAGS if you've got the misfortune of running on a little-endian host,
  7. # such as any computer using an Intel CPU.
  8.  
  9. # Your C compiler; use gcc, it's the best.  If you've got Metaware's
  10. # High C compiler on your system (ex, NCR System 3000 UNIX box), you
  11. # might want to add -Hnocopyr here, just to make it a bit quieter.
  12. # CC=gcc -ansi
  13. # CC=cgcc -ansi -Wall
  14. CC=cc -Hnocopyr
  15.  
  16. # Any optimisations, and other C flags.  Add -DLITTLE_ENDIAN if you've
  17. # got an Intel or other little-endian CPU.
  18. # CFLAGS=-O -g
  19. # CFLAGS=-O2
  20. CFLAGS=-O -486 -DLITTLE_ENDIAN
  21.  
  22. # For silly systems that require a specific file extension on executables:
  23. PROGRAM=cad3d2raw            # UNIX, etc.
  24. # PROGRAM=cad3d2raw.exe        # DOS, OS/2, etc.
  25. # PROGRAM=cad3d2raw.ttp        # Atari TOS
  26.  
  27. $(PROGRAM): cad3d2raw.o cad3dobj.o
  28.     $(CC) $(CFLAGS) -o $@ cad3d2raw.o cad3dobj.o
  29.  
  30. cad3d2raw.o: cad3d2raw.c
  31.  
  32. cad3dobj.o: cad3dobj.c
  33.  
  34. .c.o:
  35.     $(CC) $(CFLAGS) -c $<
  36.  
  37. clean:
  38.     -rm cad3d2raw.o cad3dobj.o core compile.err
  39.  
  40. spotless:
  41.     -rm cad3d2raw.o cad3dobj.o core compile.err $(PROGRAM)
  42.  
  43. zoo:
  44.     zoo ah cad3d2raw.zoo Makefile *.c *.h README README.html
  45.  
  46. gzip:
  47.     tar -cvf cad3d2raw.tar Makefile *.c *.h README README.html
  48.     gzip -9 -v cad3d2raw.tar
  49.  
  50. shar:
  51.     shar -o cad3d2raw.sh Makefile *.c *.h README README.html
  52.  
  53. # $Log: Makefile,v $
  54. # Revision 1.4  1994/04/05  15:07:30  herborth
  55. # Added shar target.
  56. #
  57. # Revision 1.3  1994/04/05  14:36:21  herborth
  58. # Added $(PROGRAM) for program target in case of stupid operating
  59. # systems.
  60. #
  61. # Revision 1.2  1994/04/05  14:20:15  herborth
  62. # Added zoo and gzip targets for packaging everything up nicely.
  63. #
  64. # Revision 1.1  1994/03/14  15:20:42  herborth
  65. # Initial revision
  66. #
  67.